package Entity;

public class Transaction {
	private int id_Transaction;
	private Investor seller;
	private Investor buyer;
	private double transactionAmount;
	private Contract contract;
	private double contractQuantity;
	
	public Transaction(int id_Transaction, Investor seller, Investor buyer,
			double transactionAmount, Contract contract, double contractQuantity) {
		super();
		this.id_Transaction = id_Transaction;
		this.seller = seller;
		this.buyer = buyer;
		this.transactionAmount = transactionAmount;
		this.contract = contract;
		this.contractQuantity = contractQuantity;
	}

	@Override
	public String toString() {
		return "Transaction [id_Transaction=" + id_Transaction + ", seller="
				+ seller + ", buyer=" + buyer + ", transactionAmount="
				+ transactionAmount + ", contract=" + contract
				+ ", contractQuantity=" + contractQuantity + "]";
	}

	public int getId_Transaction() {
		return id_Transaction;
	}

	public void setId_Transaction(int id_Transaction) {
		this.id_Transaction = id_Transaction;
	}

	public Investor getSeller() {
		return seller;
	}

	public void setSeller(Investor seller) {
		this.seller = seller;
	}

	public Investor getBuyer() {
		return buyer;
	}

	public void setBuyer(Investor buyer) {
		this.buyer = buyer;
	}

	public double getTransactionAmount() {
		return transactionAmount;
	}

	public void setTransactionAmount(double transactionAmount) {
		this.transactionAmount = transactionAmount;
	}

	public Contract getContract() {
		return contract;
	}

	public void setContract(Contract contract) {
		this.contract = contract;
	}

	public double getContractQuantity() {
		return contractQuantity;
	}

	public void setContractQuantity(double contractQuantity) {
		this.contractQuantity = contractQuantity;
	}
}
